/**
 * output package name
 */
package com.kingdee.eas.custom.jiu.statement;

import java.awt.event.ActionEvent;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;

import com.kingdee.bos.ctrl.kdf.table.CellTreeNode;
import com.kingdee.bos.ctrl.kdf.table.ICell;
import com.kingdee.bos.ctrl.kdf.table.IRow;
import com.kingdee.bos.ctrl.kdf.table.KDTDataRequestManager;
import com.kingdee.bos.ctrl.kdf.util.style.Styles.HorizontalAlignment;
import com.kingdee.bos.dao.query.SQLExecutorFactory;
import com.kingdee.bos.ui.face.CoreUIObject;
import com.kingdee.bos.ui.face.UIRuleUtil;
import com.kingdee.eas.basedata.org.CtrlUnitInfo;
import com.kingdee.eas.common.client.SysContext;
import com.kingdee.eas.framework.ICoreBase;
import com.kingdee.eas.ma.mbg.client.BgNFormListUI;
import com.kingdee.jdbc.rowset.IRowSet;

/**
 * output class name
 */
public class ProjectBudgetRptUI extends AbstractProjectBudgetRptUI
{
    private static final Logger logger = CoreUIObject.getLogger(ProjectBudgetRptUI.class);
//    BgNFormListUI MBGFormProcessUI
    protected void tblMain_tableClicked(com.kingdee.bos.ctrl.kdf.table.event.KDTMouseEvent e) throws Exception
    {
  		       
  		       
  		   int index = e.getRowIndex();
  		   int colIndex = e.getColIndex();
  		   if(colIndex == tblMain.getColumnIndex("number") || e.getClickCount()==1){
  			   Object object = tblMain.getCell(index, colIndex).getValue();
  			   if(object instanceof CellTreeNode){
	  			   CellTreeNode node = (CellTreeNode) object;
	  			   node.doTreeClick(tblMain,tblMain.getCell(index, colIndex));
  			   }
  		   }
 // 		 super.tblMain_tableClicked(e);
  		
    }

    private CellTreeNode createCellTreeNode(String name,int level,boolean isLeaf){
        CellTreeNode node = new CellTreeNode();
        node.setTreeLevel(level);
        node.setValue(name);
        node.setCollapse(false);
        
        
        node.setHasChildren(!isLeaf);
        
        return node;
       }

    public void onLoad() throws Exception {
   
    	super.onLoad();
   	     	
    	setValueToTable();
    	
    }
    
    private void setValueToTable() throws Exception {

    	//项目管理
	 	String sql1="/*dialect*/ select pro.fnumber as ItemNumber,bd.flevel as flevel,b.fnumber as fnumber,bd.fisLeaf as isLeaf,bd.FName_l2 as grouname,b.FTreeID as grou,b.CFProject as budgetItem,pro.FName_l2 as projectName from CT_BAS_ProjectGroup b join T_BD_Project pro on pro.FID= b.CFProject "+ 
	 				" join T_BAS_ProjectGroupTREE bd on bd.FID = b.FTreeID order by bd.fnumber,bd.fdisplayName_l2 "; 
	 	IRowSet rs1 = SQLExecutorFactory.getRemoteInstance(sql1).executeSQL();	
	 	Map<String,Map<String, String>> map = new HashMap<String, Map<String,String>>();
		
	 	while(rs1.next()){
	 		Map<String, String> maps=new HashMap<String, String>();
			String key = rs1.getString("grou")+rs1.getString("budgetItem");	//项目id
			
			maps.put("projectName", rs1.getString("projectName"));//项目名
			maps.put("grou", rs1.getString("grou")); //组别id
			maps.put("budgetItem", rs1.getString("budgetItem"));//项目id
			
			maps.put("grouname", rs1.getString("grouname"));
			maps.put("level", rs1.getString("flevel")); //级次
			maps.put("isLeaf", rs1.getString("isLeaf"));//是否明细
			maps.put("number", rs1.getString("fnumber"));//编码
			maps.put("thisPerform","0");
			maps.put("thisBudget","0");
			maps.put("ItemNumber",rs1.getString("ItemNumber"));
			
			map.put(key, maps);  

		}
    		
		        		
    	 	
    	 	//预算数
	 	CtrlUnitInfo  company= SysContext.getSysContext().getCurrentCtrlUnit();//获取当前管理单元CU ,比财务组织'成本中心更上一级  	
		String companyId = company.getId().toString();		
//		String x = "4/wAAAABeU3M567U";
    	 	String s="/*dialect*/ select bgScheme.FRefCube a from  T_MBG_BgScheme bgScheme  where bgScheme.FOrgUnitID='"+companyId+"' and FIsFormal = '1'"; 	
        	IRowSet ra = SQLExecutorFactory.getRemoteInstance(s).executeSQL();
            ra.next();
            String a = ra.getString("a"); 
            //sql server
    	 	String sql2_sqlServer="/*dialect*/  select p.fid as budgetItem,d.FValue as thisBudget,p.FName_l2 as projectName " +
    		" from "+a+" d inner join T_ORG_BaseUnit baseUnit on baseUnit.fid=d.FOrgUnitID "+ 
    		" join T_MBG_BgItem I on I.FNumber=SUBSTRING(d.FFormula,CHARINDEX(':',d.FFormula)+1,(CHARINDEX(',',d.FFormula))-CHARINDEX(':',d.FFormula)-1) "+ 
    		" join T_BD_Project p on p.FNumber=SUBSTRING(SUBSTRING(FFormula,CHARINDEX(',',FFormula)+1,LEN(FFormula)-LEN(substring(FFormula,0,charindex(',',FFormula)))), "+
    		" CHARINDEX(':',SUBSTRING(FFormula,CHARINDEX(',',FFormula)+1,LEN(FFormula)-LEN(substring(FFormula,0,charindex(',',FFormula)))))+1 , "+
    		" CHARINDEX(',',SUBSTRING(FFormula,CHARINDEX(',',FFormula)+1,LEN(FFormula)-LEN(substring(FFormula,0,charindex(',',FFormula)))))-CHARINDEX(':',SUBSTRING(FFormula,CHARINDEX(',',FFormula)+1,LEN(FFormula)-LEN(substring(FFormula,0,charindex(',',FFormula)))))-2) ";
 		
            //oracle
    	 	String sql2="/*dialect*/  select p.fid as budgetItem,d.FValue as thisBudget,p.FName_l2 as projectName " +
    		" from "+a+" d inner join T_ORG_BaseUnit baseUnit on baseUnit.fid=d.FOrgUnitID "+ 
    		" join T_MBG_BgItem I on I.FNumber=SUBSTR(d.FFormula,INSTR(d.FFormula,':')+1,(INSTR(d.FFormula,','))-INSTR(d.FFormula,':')-1)  "+ 
    	    " join T_BD_Project p on p.FNumber=SUBSTR(SUBSTR(FFormula,INSTR(FFormula,',')+1,LENGTH(FFormula)-LENGTH(SUBSTR(FFormula,0,INSTR(FFormula,',')))), "+
            " INSTR(SUBSTR(FFormula,INSTR(FFormula,',')+1,LENGTH(FFormula)-LENGTH(SUBSTR(FFormula,0,INSTR(FFormula,',')))),':')+1 ,  "+
            " INSTR(SUBSTR(FFormula,INSTR(FFormula,',')+1,LENGTH(FFormula)-LENGTH(SUBSTR(FFormula,0,INSTR(FFormula,',')))),',')-INSTR(SUBSTR(FFormula,INSTR(FFormula,',')+1,LENGTH(FFormula)-LENGTH(SUBSTR(FFormula,0,INSTR(FFormula,',')))),':')-2) ";

    	 	
    	 	IRowSet rs2 = null;
    	 	Boolean isOracle = true;
    	 	try {
    	 		rs2 = SQLExecutorFactory.getRemoteInstance(sql2).executeSQL();
			} catch (Exception e) {
				rs2 = SQLExecutorFactory.getRemoteInstance(sql2_sqlServer).executeSQL();
				isOracle = false;
			}
    	 	
    	 	while(rs2.next()){
    	 		String key1 = rs2.getString("budgetItem");
	   			for(String key:map.keySet()){
	   				Map<String, String> maps=map.get(key);
	   				if(maps.get("budgetItem").equals(key1)){
	   					maps.put("thisBudget",  rs2.getString("thisBudget"));  
	   				}
	   			}    	 		
    		}
    	 	
    	 	//执行数
            String b = "T_MBG_BGACTUAL"+a.substring(12);  
            //sql server
    		String sql3_sqlServer="/*dialect*/  select p.fid as budgetItem,d.FValue as thisPerform " +
    		" from "+b+" d inner join T_ORG_BaseUnit baseUnit on baseUnit.fid=d.FOrgUnitID "+ 
    		" join T_MBG_BgItem I on I.FNumber=SUBSTRING(d.f2,CHARINDEX(':',d.f2)+1,LEN(d.f2)-LEN(substring(d.f2,0,CHARINDEX(':',d.f2)))) "+ 
    		" join T_BD_Project p on p.FNumber=SUBSTRING(d.f12,CHARINDEX(':',d.f12)+1,LEN(d.f12)-LEN(substring(d.f12,0,CHARINDEX(':',d.f12)))) " ;
	
            //Oracle
    		String sql3="/*dialect*/  select p.fid as budgetItem,d.FValue as thisPerform "+
    		" from "+b+" d  inner join T_ORG_BaseUnit baseUnit on baseUnit.fid=d.FOrgUnitID "+
   		    " join T_MBG_BgItem I on I.FNumber=SUBSTR(d.f2,INSTR(d.f2,':')+1,LENGTH(d.f2)-LENGTH(SUBSTR(d.f2,0,INSTR(d.f2,':')))) "+
   		    " join T_BD_Project p on p.FNumber=SUBSTR(d.f12,INSTR(d.f12,':')+1,LENGTH(d.f12)-LENGTH(SUBSTR(d.f12,0,INSTR(d.f12,':')))) "; 

    		
    		IRowSet rs3 = null;
			if (isOracle) {
    	 		rs3 = SQLExecutorFactory.getRemoteInstance(sql3).executeSQL(); 
			} else {
				rs3 = SQLExecutorFactory.getRemoteInstance(sql3_sqlServer).executeSQL(); 
			}
    		while (rs3.next()) {
    			String key2 = rs3.getString("budgetItem");
	   			for(String key:map.keySet()){
	   				Map<String, String> maps=map.get(key);
	   				if(maps.get("budgetItem").equals(key2)){
	   					maps.put("thisPerform",  rs3.getString("thisPerform"));  
	   				}
	   			}
	   		        
    		}
    	 	
    	
    	  	//组别
    		String sql="/*dialect*/ select b.FParentID as fparent,b.flevel as flevel,b.fnumber as fnumber,b.fisLeaf as isLeaf,b.fid as grou,b.fname_l2 as fname from T_BAS_ProjectGroupTREE b order by b.FLongNumber ";

    		IRowSet rs = SQLExecutorFactory.getRemoteInstance(sql).executeSQL();
    		Map<String, String> maps1=new HashMap<String, String>();
  		
    		tblMain.removeRows();
	   		//填數
	   		IRow row = null;
  	    	int y=0;
	   		while (rs.next()) {
	   			y++;
    			maps1.put("name", rs.getString("fname"));
    			maps1.put("grou", rs.getString("grou"));   
    			maps1.put("level", rs.getString("flevel"));  
    			maps1.put("number", rs.getString("fnumber"));  
    			maps1.put("isLeaf", rs.getString("isLeaf"));
    			
    			row = tblMain.addRow();	    			
    			row.getCell("projectName").setValue(maps1.get("name"));			   				
    			row.getCell("level").setValue(maps1.get("level"));	
    			row.getCell("number").setValue(maps1.get("number"));	
    			row.getCell("isLeaf").setValue(maps1.get("isLeaf"));
    			row.getCell("ItemNumber").setValue(maps1.get("number"));
    			
    			if(rs.getString("fparent") !=null){
    				row.getCell("parent").setValue(rs.getString("fparent"));  
    			}else{
    				row.getCell("parent").setValue("2");
    			}
    			if(rs.getString("grou") !=null){
    				row.getCell("id").setValue(rs.getString("grou"));   
    			}else{
    				row.getCell("id").setValue("2");
    			}
    					  	  		
    			String g= rs.getString("grou");
    			BigDecimal bd1 = new BigDecimal(0);
    			BigDecimal bd2 = new BigDecimal(0);
    			BigDecimal bdz = new BigDecimal(0);
    			    			
	   			for(String key:map.keySet()){ 	
	   				Map<String, String> maps=map.get(key);	   					   					   					   				   				
	   				if (g.equals(maps.get("grou"))) {	   					
			    		BigDecimal bd = new BigDecimal(maps.get("thisBudget"));
			    		bd1=bd1.add(bd);			    		
			    		BigDecimal ba = new BigDecimal(maps.get("thisPerform"));
			    		bd2=bd2.add(ba);			    	
	   				}	   				
	   			}
	   			row.getCell("budget").setValue(bd1.setScale(2,BigDecimal.ROUND_HALF_UP));
				row.getCell("execute").setValue(bd2.setScale(2,BigDecimal.ROUND_HALF_UP));
				row.getCell("balance").setValue((bd1.subtract(bd2)).setScale(2,BigDecimal.ROUND_HALF_UP));
				
				if (bd1.equals(bdz)) {
					row.getCell("ratio").setValue(bdz.setScale(2,BigDecimal.ROUND_HALF_UP));
				}else {	
					//%
					BigDecimal bax = new BigDecimal(100);
					BigDecimal ba2  = (bd2.divide(bd1, 4, BigDecimal.ROUND_HALF_UP)).multiply(bax);
					row.getCell("ratio").setValue(ba2.setScale(2,BigDecimal.ROUND_HALF_UP));
										
				}
								
			
	   			for(String key:map.keySet()){
	   				Map<String, String> maps=map.get(key);
	   				if (g.equals(maps.get("grou"))) {

	   					row = tblMain.addRow();	   					
	   					row.getCell("projectName").setValue(maps.get("projectName"));
	   					Integer ag = Integer.parseInt(maps.get("level"));
	   					row.getCell("level").setValue(String.valueOf(ag+1));
	   					row.getCell("number").setValue(maps.get("number"));
	   					row.getCell("isLeaf").setValue("true");
	   					row.getCell("parent").setValue("0"); 
	   					row.getCell("id").setValue("1"); 
	   					row.getCell("ItemNumber").setValue(maps.get("ItemNumber"));
	   					
	   					
	   					BigDecimal ba = new BigDecimal(maps.get("thisBudget"));
	   					BigDecimal ba1 = new BigDecimal(maps.get("thisPerform"));
	   					
	   					row.getCell("budget").setValue(ba.setScale(2,BigDecimal.ROUND_HALF_UP));						
	   					row.getCell("execute").setValue(ba1.setScale(2,BigDecimal.ROUND_HALF_UP));
	   					
	   					row.getCell("balance").setValue((ba.subtract(ba1)).setScale(2,BigDecimal.ROUND_HALF_UP));
	   					
	   					if ((maps.get("thisBudget").toString()).equals("0") || (maps.get("thisPerform").toString()).equals("0") ) {
	   						row.getCell("ratio").setValue(bdz.setScale(2,BigDecimal.ROUND_HALF_UP));
						}else {	
							//%
							BigDecimal bax = new BigDecimal(100);
							BigDecimal ba2  = ba1.divide(ba, 4, BigDecimal.ROUND_HALF_UP).multiply(bax);
							row.getCell("ratio").setValue(ba2.setScale(2,BigDecimal.ROUND_HALF_UP));
														
						}
					}	
	   			}	
					
    		}
	   		
	   	 tblMain.setRowCount(map.size()+y);
	   			   				   			
   			for (int i = tblMain.getRowCount()-1; i >=0; i--){	 //上级
   				
   				if(tblMain.getRow(i).getCell(5).getValue().toString() != null){
   					BigDecimal s1 = new BigDecimal(0);
   					BigDecimal s2 = new BigDecimal(0);
   					BigDecimal s3 = new BigDecimal(0);
   					BigDecimal s4 = new BigDecimal(0);
   					BigDecimal bdz = new BigDecimal(0);
   					for (int j = tblMain.getRowCount()-1; j >=0; j--){	 //下级   	
   						
   						if(tblMain.getRow(i).getCell("parent").getValue().toString()!= null && tblMain.getRow(j).getCell("id").getValue().toString().equals(tblMain.getRow(i).getCell("parent").getValue().toString())){	   							
   							 String budg = tblMain.getCell(i,"budget").getValue().toString();
   							 String exec = tblMain.getCell(i,"execute").getValue().toString();
   							 
   							 s3 = (BigDecimal) tblMain.getCell(j,"budget").getValue();
   							 s4 = (BigDecimal) tblMain.getCell(j,"execute").getValue();
   							BigDecimal bu = new BigDecimal(budg);
   							s1=s1.add(bu);
   							s1=s1.add(s3);
   							BigDecimal ex = new BigDecimal(exec);
   							s2=s2.add(ex);
   							s2=s2.add(s4);
   							tblMain.getCell(j,"budget").setValue(s1.setScale(2,BigDecimal.ROUND_HALF_UP));
   		   					tblMain.getCell(j,"execute").setValue(s2.setScale(2,BigDecimal.ROUND_HALF_UP));	
   		   					
   		   					
   		   					tblMain.getCell(j,"balance").setValue(s1.subtract(s2).setScale(2,BigDecimal.ROUND_HALF_UP));
   		   					
			   				if (tblMain.getCell(j,"execute").getValue().toString().equals("0.00") || tblMain.getCell(j,"budget").getValue().toString().equals("0.00") ) {
			   					tblMain.getCell(j,"ratio").setValue(bdz.setScale(2,BigDecimal.ROUND_HALF_UP));
			   				}else {
				   				BigDecimal bax = new BigDecimal(100);
								BigDecimal ba2  = s2.divide(s1, 4, BigDecimal.ROUND_HALF_UP).multiply(bax);
								tblMain.getCell(j,"ratio").setValue(ba2.setScale(2,BigDecimal.ROUND_HALF_UP));
 		   					
							}
  					}
   				}
   			}
   		}
   				
   			for (int z = tblMain.getRowCount()-1; z >=0; z--){
   			     String budg = tblMain.getCell(z,"budget").getValue().toString();
				 String exec = tblMain.getCell(z,"execute").getValue().toString();
				 BigDecimal bu = new BigDecimal(budg);
				 BigDecimal ex = new BigDecimal(exec);
				 
				 DecimalFormat df4 = new DecimalFormat("#,##0.00");
			
				 tblMain.getCell(z,"budget").setValue(df4.format(bu));
				 tblMain.getCell(z,"execute").setValue(df4.format(ex));
				 tblMain.getCell(z,"balance").setValue(df4.format(bu.subtract(ex)));
				 
   			}
	   		
	   		
	   		
    		
      
       
       tblMain.getDataRequestManager().setDataRequestMode(KDTDataRequestManager.REAL_MODE);
       afterDataFill();
       tblMain.getStyleAttributes().setHorizontalAlign(HorizontalAlignment.LEFT);
}
   
    public void afterDataFill() {
		  int rowIndex = tblMain.getRowCount();
		  for(int i=rowIndex-1;i>=0;i--){
			  
		  int level = UIRuleUtil.getIntValue(tblMain.getCell(i,"level").getValue());                                                                   
		  boolean isLeaf = UIRuleUtil.getBooleanValue(Boolean.parseBoolean(tblMain.getCell(i,"isLeaf").getValue().toString()));  		  		  
		  String name = tblMain.getCell(i,"projectName").getValue().toString();  		  
		  CellTreeNode cellTreeNode = createCellTreeNode(name.trim(), level, isLeaf);  		  
		  tblMain.getCell(i, "projectName").setValue(cellTreeNode);
	      }
	 }
    
    

	
	//刷新
    public void actionRefresh_actionPerformed(ActionEvent e) throws Exception
    {
    	super.actionRefresh_actionPerformed(e);
    	
    	setValueToTable();
   	
    }

  //查询
    public void actionQuery_actionPerformed(ActionEvent e) throws Exception
    {
    	super.actionQuery_actionPerformed(e);
    	
    	setValueToTable();
    	
    }
    
    
    
		
    
    
    /**
     * output class constructor
     */
    public ProjectBudgetRptUI() throws Exception
    {
        super();
    }

    /**
     * output storeFields method
     */
    public void storeFields()
    {
        super.storeFields();
    }

   

    /**
     * output menuItemImportData_actionPerformed method
     */
    protected void menuItemImportData_actionPerformed(java.awt.event.ActionEvent e) throws Exception
    {
        super.menuItemImportData_actionPerformed(e);
    }

    /**
     * output actionPageSetup_actionPerformed
     */
    public void actionPageSetup_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionPageSetup_actionPerformed(e);
    }

    /**
     * output actionExitCurrent_actionPerformed
     */
    public void actionExitCurrent_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionExitCurrent_actionPerformed(e);
    }

    /**
     * output actionHelp_actionPerformed
     */
    public void actionHelp_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionHelp_actionPerformed(e);
    }

    /**
     * output actionAbout_actionPerformed
     */
    public void actionAbout_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionAbout_actionPerformed(e);
    }

    /**
     * output actionOnLoad_actionPerformed
     */
    public void actionOnLoad_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionOnLoad_actionPerformed(e);
    }

    /**
     * output actionSendMessage_actionPerformed
     */
    public void actionSendMessage_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionSendMessage_actionPerformed(e);
    }

    /**
     * output actionCalculator_actionPerformed
     */
    public void actionCalculator_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionCalculator_actionPerformed(e);
    }

    /**
     * output actionExport_actionPerformed
     */
    public void actionExport_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionExport_actionPerformed(e);
    }

    /**
     * output actionExportSelected_actionPerformed
     */
    public void actionExportSelected_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionExportSelected_actionPerformed(e);
    }

    /**
     * output actionRegProduct_actionPerformed
     */
    public void actionRegProduct_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionRegProduct_actionPerformed(e);
    }

    /**
     * output actionPersonalSite_actionPerformed
     */
    public void actionPersonalSite_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionPersonalSite_actionPerformed(e);
    }

    /**
     * output actionProcductVal_actionPerformed
     */
    public void actionProcductVal_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionProcductVal_actionPerformed(e);
    }

    /**
     * output actionExportSave_actionPerformed
     */
    public void actionExportSave_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionExportSave_actionPerformed(e);
    }

    /**
     * output actionExportSelectedSave_actionPerformed
     */
    public void actionExportSelectedSave_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionExportSelectedSave_actionPerformed(e);
    }

    /**
     * output actionKnowStore_actionPerformed
     */
    public void actionKnowStore_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionKnowStore_actionPerformed(e);
    }

    /**
     * output actionAnswer_actionPerformed
     */
    public void actionAnswer_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionAnswer_actionPerformed(e);
    }

    /**
     * output actionRemoteAssist_actionPerformed
     */
    public void actionRemoteAssist_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionRemoteAssist_actionPerformed(e);
    }

    /**
     * output actionPopupCopy_actionPerformed
     */
    public void actionPopupCopy_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionPopupCopy_actionPerformed(e);
    }

    /**
     * output actionHTMLForMail_actionPerformed
     */
    public void actionHTMLForMail_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionHTMLForMail_actionPerformed(e);
    }

    /**
     * output actionExcelForMail_actionPerformed
     */
    public void actionExcelForMail_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionExcelForMail_actionPerformed(e);
    }

    /**
     * output actionHTMLForRpt_actionPerformed
     */
    public void actionHTMLForRpt_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionHTMLForRpt_actionPerformed(e);
    }

    /**
     * output actionExcelForRpt_actionPerformed
     */
    public void actionExcelForRpt_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionExcelForRpt_actionPerformed(e);
    }

    /**
     * output actionLinkForRpt_actionPerformed
     */
    public void actionLinkForRpt_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionLinkForRpt_actionPerformed(e);
    }

    /**
     * output actionPopupPaste_actionPerformed
     */
    public void actionPopupPaste_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionPopupPaste_actionPerformed(e);
    }

    /**
     * output actionToolBarCustom_actionPerformed
     */
    public void actionToolBarCustom_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionToolBarCustom_actionPerformed(e);
    }

    /**
     * output actionCloudFeed_actionPerformed
     */
    public void actionCloudFeed_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionCloudFeed_actionPerformed(e);
    }

    /**
     * output actionCloudShare_actionPerformed
     */
    public void actionCloudShare_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionCloudShare_actionPerformed(e);
    }

    /**
     * output actionCloudScreen_actionPerformed
     */
    public void actionCloudScreen_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionCloudScreen_actionPerformed(e);
    }

    /**
     * output actionXunTongFeed_actionPerformed
     */
    public void actionXunTongFeed_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionXunTongFeed_actionPerformed(e);
    }

    /**
     * output actionAddNew_actionPerformed
     */
    public void actionAddNew_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionAddNew_actionPerformed(e);
    }

    /**
     * output actionView_actionPerformed
     */
    public void actionView_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionView_actionPerformed(e);
    }

    /**
     * output actionEdit_actionPerformed
     */
    public void actionEdit_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionEdit_actionPerformed(e);
    }

    /**
     * output actionRemove_actionPerformed
     */
    public void actionRemove_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionRemove_actionPerformed(e);
    }



    /**
     * output actionPrint_actionPerformed
     */
    public void actionPrint_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionPrint_actionPerformed(e);
    }

    /**
     * output actionPrintPreview_actionPerformed
     */
    public void actionPrintPreview_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionPrintPreview_actionPerformed(e);
    }

    /**
     * output actionLocate_actionPerformed
     */
    public void actionLocate_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionLocate_actionPerformed(e);
    }



    /**
     * output actionImportData_actionPerformed
     */
    public void actionImportData_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionImportData_actionPerformed(e);
    }

    /**
     * output actionAttachment_actionPerformed
     */
    public void actionAttachment_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionAttachment_actionPerformed(e);
    }

    /**
     * output actionExportData_actionPerformed
     */
    public void actionExportData_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionExportData_actionPerformed(e);
    }

    /**
     * output actionToExcel_actionPerformed
     */
    public void actionToExcel_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionToExcel_actionPerformed(e);
    }

    /**
     * output actionStartWorkFlow_actionPerformed
     */
    public void actionStartWorkFlow_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionStartWorkFlow_actionPerformed(e);
    }

    /**
     * output actionPublishReport_actionPerformed
     */
    public void actionPublishReport_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionPublishReport_actionPerformed(e);
    }

    /**
     * output actionCancel_actionPerformed
     */
    public void actionCancel_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionCancel_actionPerformed(e);
    }

    /**
     * output actionCancelCancel_actionPerformed
     */
    public void actionCancelCancel_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionCancelCancel_actionPerformed(e);
    }

    /**
     * output actionQueryScheme_actionPerformed
     */
    public void actionQueryScheme_actionPerformed(ActionEvent e) throws Exception
    {
        super.actionQueryScheme_actionPerformed(e);
    }

	@Override
	protected ICoreBase getBizInterface() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected String getEditUIName() {
		// TODO Auto-generated method stub
		return null;
	}

}